/**
 * Created by KhoaNam on 7/8/2014.
 */

var WAITTING_OWNER_START = "ルームオーナーがゲームを開始するまで お待ちください。";
var WAITING_MORE_PLAYERS = "他のプレイヤーの参加を待ってます。";
var WAITING_OTHERS_READY = "Waitting others user ready";

var PLAYERINFO = {
    DEFAULT_PROFILE : "res/profiles/profile_man.png",
    NAME_FONT: "Arial",
    NAME_SIZE: 18,
    DIRECTION_ICON_EAST: "res/owner_crown.png",
    DIRECTION_ICON_WEST: "res/owner_crown.png",
    DIRECTION_ICON_SOUTH: "res/owner_crown.png",
    DIRECTION_ICON_NORTH: "res/owner_crown.png",
    OWNER_POSITION:1
};

var TILE = {
    WALL_BOT_HEIGHT: 48,
    WALL_BOT_WIDTH: 30,
    WALL_LEFT_WIDTH: 44,
    WALL_LEFT_HEIGHT: 38,
    DISTANCE: 1,
    DISTANCE_INFO:3,
    DISTANCE_OTHER_AREA: 12,
    DISTANCE_OTHER_WALL: 3,
    DISTANCE_OTHER_DIRECTION_WALL: 7,
    DISTANCE_WITH_NEW_THROWN_TILE: 5,
    DISTANCE_TILE_PICK: 15,
    BOT_WIDTH: 40,
    BOT_HEIGHT: 64,
    LEFT_WIDTH: 50,
    LEFT_HEIGHT: 26,
    TOP_HEIGHT: 48,
    TOP_WIDTH: 30,
    OVERPLAY: 15,
    OVERPLAY_LEFT_RIGHT: 25,
    ORDER_ACTION: 99,
    MAX_TILE_PER_PLAYER: 14,
    NUM_OF_ROW_THROWN_TILE: 6,
    THROWN_TILE_HEIGHT: {
        1: 48,
        2: 38,
        3: 48,
        4: 38
    },

    THROWN_TILE_WIDTH: {
        1: 30,
        2: 44,
        3: 30,
        4: 44
    },

    ORDER_ANIMATION: 200,
    ORDER_PICKED: 100,
    ORDER_THROWN_TILE: {
        1: 32,
        2: 31,
        3: 31,
        4: 20
    },
    TIME_THROWN_TILE: 0.3,
    TIME_SORT_THROWN_TILE: 0.1

};

var GAME = {
    BACKGROUND : "res/imgBgTransparent.png",
    INFOBACKGROUND: "res/InforUser.png",
    HEIGHT: 640,
    WIDTH:800,
    NUM_OF_PLAYER: 2,
    MAX_PLAYER: 4
};

var MESSAGEBOX = {
    BACKGROUND: "res/MessageBox/popup_base.png",
    START_LOGO: "res/MessageBox/start_logo.png",
    FONT: "Verdana",
    FONT_SIZE: 20,
    PADDING: 10,
    BUTTON_START: 1,
    BUTTON_READY: 0,
    BUTTON_QUIT: 2
};

var INFO = {
    PLAYER: PLAYERINFO,
    GAME: GAME,
    MESSAGEBOX: MESSAGEBOX,
    BUTTON:{
        READY:{
            NORMAL: "res/MessageBox/ready.png",
            DOWN: "res/MessageBox/ready_pushed.png"
        },
        START:{
            NORMAL: "res/MessageBox/start.png",
            DOWN: "res/MessageBox/start_pushed.png"
        }
    },
    TILE: TILE,
    ANIMATION:{
        DELAY_TILE:0.5
    },
    TEXT: {
        DIRECTION:{
            "1": "東",
            "2": "西",
            "3": "南",
            "4": "北"
        }
    },
    TYPE_WIN_TILE:{
        TSUMO: 1,
        RIICHI: 2,
        RON: 3,
        OPENKAN: 4,
        CLOSEKAN: 5,
        LATEKAN: 6,
        PON: 7,
        CHI: 8
    }
};

